home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / CPlusPlus / FocusOwn.xh < prev    next >
Encoding:
Text File  |  1997-02-13  |  5.3 KB  |  218 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: FocusOwn.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODFocusOwnerIterator_xh
  18. #define SOM_ODFocusOwnerIterator_xh
  19.  
  20. class ODFocusOwnerIterator;
  21.  
  22. #define ODFocusOwnerIterator_MajorVersion 1
  23. #define ODFocusOwnerIterator_MinorVersion 0
  24.  
  25. /* C++ SOM defs */
  26. #include <somcls.xh>
  27. #include <somcm.xh>
  28.  
  29. /* C++ parent defs */
  30. #ifndef SOM_ODObject_xh
  31. #include <ODObject.xh>
  32. #endif
  33.  
  34. #ifndef ODFocusOwnerIterator_API
  35. #define ODFocusOwnerIterator_API
  36. /*
  37.  * -- The Class API
  38.  */
  39.  
  40. /*
  41.  * Start of user-defined types:
  42.  */
  43. class SOMClass;
  44. class SOMObject;
  45. class ODFrame;
  46. class ODFacet;
  47. class ODObject;
  48. class ODExtension;
  49. class ODFocusOwnerIterator;
  50. class ODFocusModule;
  51.  
  52. /*
  53.  * End of user-defined types.
  54.  */
  55.  
  56. #ifdef OLDIBMSOMAPISUPPORT
  57. #define ODFocusOwnerIteratorCClassData ODFocusOwnerIteratorClassData
  58. #define ODFocusOwnerIteratorNewClass(major,minor) somNewVersionedClassReference(ODFocusOwnerIterator,major,minor)
  59. #endif
  60.  
  61. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  62. #define ODFocusOwnerIteratorMetaClass SOMClass
  63.  
  64. #if PRAGMA_ALIGN_SUPPORTED
  65. #  pragma options align=power
  66. #endif
  67.  
  68. /* The API to the ODFocusOwnerIterator class object, and the methods it introduces. */
  69. SOMEXTERN struct ODFocusOwnerIteratorClassDataStructure {
  70. #ifdef OLDIBMSOMAPISUPPORT
  71.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  72. #else
  73.     long zero;
  74. #endif
  75.     somStaticClassInfo *sci;
  76.     somDToken        instanceDataToken;
  77.     long reserved [3];
  78.     somMToken InitFocusOwnerIterator;
  79.     somMToken First;
  80.     somMToken Next;
  81.     somMToken IsNotComplete;
  82. } SOMDLINK ODFocusOwnerIteratorClassData;
  83.  
  84. #if PRAGMA_ALIGN_SUPPORTED
  85. #  pragma options align=reset
  86. #endif
  87.  
  88. #if !defined(ODFocusOwnerIterator_Class_Source) && !defined(SOM_Module_focusown_Source)
  89. #if PRAGMA_IMPORT_SUPPORTED
  90. #pragma import list ODFocusOwnerIteratorClassData
  91. #endif
  92. #endif
  93.  
  94.  
  95. /*
  96.  * -- Typedefs and inline method declarations for left path inherited methods
  97.  * -- are omitted because this compilation had -museinheritedmethods in effect
  98.  */
  99.  
  100.  
  101. /*
  102.  * -- Typedefs for ODFocusOwnerIterator Method Procedures
  103.  */
  104. SOMEXTERN {
  105. typedef void   (* SOMLINK somTD_ODFocusOwnerIterator_InitFocusOwnerIterator)(ODFocusOwnerIterator *somSelf, Environment *ev,
  106.         ODTypeToken focus,
  107.         ODFocusModule* focusModule);
  108. typedef ODFrame*   (* SOMLINK somTD_ODFocusOwnerIterator_First)(ODFocusOwnerIterator *somSelf, Environment *ev);
  109. typedef ODFrame*   (* SOMLINK somTD_ODFocusOwnerIterator_Next)(ODFocusOwnerIterator *somSelf, Environment *ev);
  110. typedef ODBoolean   (* SOMLINK somTD_ODFocusOwnerIterator_IsNotComplete)(ODFocusOwnerIterator *somSelf, Environment *ev);
  111. }
  112.  
  113. #endif /* ODFocusOwnerIterator_API */
  114.  
  115.  
  116. /*
  117.  * -- This emitter treats Method Tokens as Thunks by default.
  118.  * -- Use the sc modifier "nothunks" to change this default
  119.  */
  120. #undef somresolve_
  121. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  122.  
  123. /*
  124.  * -- The C++ Wrapper Class for ODFocusOwnerIterator
  125.  */
  126. class ODFocusOwnerIterator : public ODObject
  127. {
  128. public:
  129.  
  130. // ODFocusOwnerIterator::new registers use of the class object, and then uses somNew
  131. // to allocate memory and load the object method table pointer. 
  132. void *operator new(size_t size)
  133. {
  134.     SOM_IgnoreWarning(size);
  135.     // Allocate memory using the default allocator for ODFocusOwnerIterator, and
  136.     // clear mem & set method table pointer, call basic initialization
  137. #ifdef SOMCHKNULL
  138.     void * __somResult = (void *)
  139.       somNewObject(ODFocusOwnerIterator);
  140.     SOMCHKNULL(__somResult);
  141.     return __somResult;
  142. #else
  143.     return (void*) somNewObject(ODFocusOwnerIterator);
  144. #endif
  145. }
  146.  
  147. // ODFocusOwnerIterator::delete uses the default deallocator for the object's class.
  148. void operator delete(void * obj)
  149. {
  150.     if (obj) {
  151.         SOM_Resolve(obj,SOMObject,somFree)
  152.            ( (SOMObject*) obj );
  153.     }
  154. }
  155.  
  156. /* method: InitFocusOwnerIterator */
  157. void   InitFocusOwnerIterator(Environment *ev,
  158.         ODTypeToken focus,
  159.         ODFocusModule* focusModule)
  160. {
  161.    SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,InitFocusOwnerIterator)
  162.     (this,ev,focus,focusModule);
  163. #ifdef SOMCHKEXCEPT
  164.       SOMCHKEXCEPT;
  165. #endif
  166. }
  167.  
  168. /* method: First */
  169. ODFrame*   First(Environment *ev)
  170. {
  171.    #ifdef SOMCHKEXCEPT
  172.    ODFrame* __somResult = 
  173.       SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,First)
  174.     (this,ev);
  175.       SOMCHKEXCEPT;
  176.    return __somResult;
  177. #else
  178.    return SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,First)
  179.     (this,ev);
  180. #endif
  181. }
  182.  
  183. /* method: Next */
  184. ODFrame*   Next(Environment *ev)
  185. {
  186.    #ifdef SOMCHKEXCEPT
  187.    ODFrame* __somResult = 
  188.       SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,Next)
  189.     (this,ev);
  190.       SOMCHKEXCEPT;
  191.    return __somResult;
  192. #else
  193.    return SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,Next)
  194.     (this,ev);
  195. #endif
  196. }
  197.  
  198. /* method: IsNotComplete */
  199. ODBoolean   IsNotComplete(Environment *ev)
  200. {
  201.    #ifdef SOMCHKEXCEPT
  202.    ODBoolean __somResult = 
  203.       SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,IsNotComplete)
  204.     (this,ev);
  205.       SOMCHKEXCEPT;
  206.    return __somResult;
  207. #else
  208.    return SOM_ResolveD(this,ODFocusOwnerIterator,ODFocusOwnerIterator,IsNotComplete)
  209.     (this,ev);
  210. #endif
  211. }
  212.  
  213. };   /* ODFocusOwnerIterator */
  214.  
  215.  
  216.  
  217. #endif       /* SOM_ODFocusOwnerIterator_xh */
  218.